<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
账号 <span sec:authentication="name">123</span> <br>
账号<span sec:authentication="principal.username">123</span> <br>
凭证<span sec:authentication="credentials">123</span> <br>
权限<span sec:authentication="authorities">123</span> <br>
客户端地址<span sec:authentication="details.remoteAddress">123</span> <br>
sessionId<span sec:authentication="details.sessionId">123</span> <br>

<br>
<button sec:authorize="hasAuthority('insert')">add</button>
<button sec:authorize="hasAuthority('delete')">delete</button>
<br>
<br>
<button sec:authorize="hasRole('abc')">add</button>
<button sec:authorize="hasRole('abc')">delete</button>
<br>


</body>
</html>